import java.util.Scanner;

public class Feibo {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.print("请输入斐波拉切数列的项数:");
		int time = input.nextInt();
		int num1 = 1;
		int num2 = 1;
		int num;// 临时
		for (int i = 1; i <= time; i++) {
			if (i == 1 || i == 2) {
				System.out.print(num1 + "   ");
			} else {
				num = num1 + num2;
				num1 = num2;
				num2 = num;
				System.out.print(num2 + "   ");
			}
		}

	}
}
